<?php
/**
 * Created by PhpStorm.
 * User: Monkey
 * Date: 2021/10/13
 * Time: 11:27
 * Desc: 登陆
 */

namespace app\backend\validate;

use think\Validate;

class WithdrawValidate extends Validate
{
    protected $rule = [
        'page' => 'integer',
        'limit' => 'integer',
        'id' => 'require|integer',
        'status' => 'require|in:0,1,2',
    ];

    protected $message = [
        'page.integer' => '页码格式错误',
        'limit.integer' => '条数格式错误',
        'id.require' => 'ID不能为空',
        'id.integer' => 'ID参数格式错误',
        'status.require' => '状态不能为空',
        'status.in' => '状态格式错误',
    ];

    protected $scene = [
        'index' => ['page','limit'],
        'check' => ['id','status'],
        'del' => ['id']
    ];
}
